<template>
  <div class="main">
    <el-row>
      <el-col :span="3" ><NavMenu :adminAccess="this.$route.query.adminAccess"></NavMenu></el-col>
      <el-col :span="21">
        <heard></heard>
        <div v-if="$route.fullPath == '/main'" class="welcome">
          <h1 class="title">欢迎来到心理咨询后台管理系统</h1>
        </div>
        <router-view></router-view>
      </el-col>
    </el-row>
  </div>
</template>
<script>
import heard from "@/components/heard.vue";
import NavMenu from "@/components/NavMenu.vue";
export default {
  data() {
    return {};
  },
  components: {
    heard,
    NavMenu,
  },
  methods: {},
  mounted(){
    
  }
};
</script>

<style lang="scss" scoped>
.welcome {
  display: flex;
  justify-content: center;
  .title {
    font-size: 30px;
    font-weight: 900;
  }
}
</style>